﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data;
using DTO;

namespace Business
{
  public  class ChiTietBaoCaoTonService
    {
      public static List<ChiTietBaoCaoTonDTO> GetChiTietBaoCaoTonByMaBaoCaoTon(int mabaocaoton)
      {
          return ChiTietBaoCaoTonRepository.GetChiTietBaoCaoTonByMaBaoCaoTon(mabaocaoton);
      }
      public void Insert(ChiTietBaoCaoTonDTO chitietbaocaotonDTO)
      {
          ChiTietBaoCaoTonRepository chitietbaocaotonRepository = new ChiTietBaoCaoTonRepository();
          chitietbaocaotonRepository.Insert(chitietbaocaotonDTO);
      }
      public void Update(ChiTietBaoCaoTonDTO chitietbaocaotonDTO)
      {
          ChiTietBaoCaoTonRepository chitietbaocaotonRepository = new ChiTietBaoCaoTonRepository();
          chitietbaocaotonRepository.Update(chitietbaocaotonDTO);
      }
      
    }
}
